package com.kgc.xs.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class SalesOut implements Serializable {

    private int id;
    private String code;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date orderDate;
    private String sourceCode;
    private int cid;
    private int did;
    private int uid;
    private int orderStatus;
    private int outStoreNum;
    private int orderType;
    private String notes;
    private BigDecimal sumPrice;
    private BigDecimal taxSumPrice;
    private BigDecimal unitCost;
    private BigDecimal sumCost;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createDate;
    private String createUser;
    private String updateUser;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date updateDate;
    private  int isDelete;
    private  int typeId;

    public int getTypeId() {
        return typeId;
    }

    public void setTypeId(int typeId) {
        this.typeId = typeId;
    }

    public SalesOut() {
    }

    public SalesOut(int id, String code, Date orderDate, String sourceCode, int cid, int did, int uid, int orderStatus, int outStoreNum, int orderType, String notes, BigDecimal sumPrice, BigDecimal taxSumPrice, BigDecimal unitCost, BigDecimal sumCost, Date createDate, String createUser, String updateUser, Date updateDate, int isDelete, int typeId) {
        this.id = id;
        this.code = code;
        this.orderDate = orderDate;
        this.sourceCode = sourceCode;
        this.cid = cid;
        this.did = did;
        this.uid = uid;
        this.orderStatus = orderStatus;
        this.outStoreNum = outStoreNum;
        this.orderType = orderType;
        this.notes = notes;
        this.sumPrice = sumPrice;
        this.taxSumPrice = taxSumPrice;
        this.unitCost = unitCost;
        this.sumCost = sumCost;
        this.createDate = createDate;
        this.createUser = createUser;
        this.updateUser = updateUser;
        this.updateDate = updateDate;
        this.isDelete = isDelete;
        this.typeId = typeId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Date getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(Date orderDate) {
        this.orderDate = orderDate;
    }

    public String getSourceCode() {
        return sourceCode;
    }

    public void setSourceCode(String sourceCode) {
        this.sourceCode = sourceCode;
    }

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    public int getDid() {
        return did;
    }

    public void setDid(int did) {
        this.did = did;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public int getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(int orderStatus) {
        this.orderStatus = orderStatus;
    }

    public int getOutStoreNum() {
        return outStoreNum;
    }

    public void setOutStoreNum(int outStoreNum) {
        this.outStoreNum = outStoreNum;
    }

    public int getOrderType() {
        return orderType;
    }

    public void setOrderType(int orderType) {
        this.orderType = orderType;
    }

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    public BigDecimal getSumPrice() {
        return sumPrice;
    }

    public void setSumPrice(BigDecimal sumPrice) {
        this.sumPrice = sumPrice;
    }

    public BigDecimal getTaxSumPrice() {
        return taxSumPrice;
    }

    public void setTaxSumPrice(BigDecimal taxSumPrice) {
        this.taxSumPrice = taxSumPrice;
    }

    public BigDecimal getUnitCost() {
        return unitCost;
    }

    public void setUnitCost(BigDecimal unitCost) {
        this.unitCost = unitCost;
    }

    public BigDecimal getSumCost() {
        return sumCost;
    }

    public void setSumCost(BigDecimal sumCost) {
        this.sumCost = sumCost;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public int getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(int isDelete) {
        this.isDelete = isDelete;
    }

    @Override
    public String toString() {
        return "SalesOut{" +
                "id=" + id +
                ", code='" + code + '\'' +
                ", orderDate=" + orderDate +
                ", sourceCode='" + sourceCode + '\'' +
                ", cid=" + cid +
                ", did=" + did +
                ", uid=" + uid +
                ", orderStatus=" + orderStatus +
                ", outStoreNum=" + outStoreNum +
                ", orderType=" + orderType +
                ", notes='" + notes + '\'' +
                ", sumPrice=" + sumPrice +
                ", taxSumPrice=" + taxSumPrice +
                ", unitCost=" + unitCost +
                ", sumCost=" + sumCost +
                ", createDate=" + createDate +
                ", createUser='" + createUser + '\'' +
                ", updateUser='" + updateUser + '\'' +
                ", updateDate=" + updateDate +
                ", isDelete=" + isDelete +
                '}';
    }
}

